import { anPort } from "./an.config/anStting.js";
import Koa from "koa"
import { useControllers } from "./controllers/index.js";
import { sync } from "./db/index.js";


let app =new Koa()
await sync()
useControllers(app)
app.listen(anPort)
console.log(`服务端在http://localhost:${anPort}`)

 